// DirectShowDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "afxcmn.h"

#define SLIDER_TIMER	1

class CDXGraph;

// CDirectShowDlg dialog
class CDirectShowDlg : public CDialog
{
// Construction
public:
	CDirectShowDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_DIRECTSHOW_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

public:
	CDXGraph* m_pDShow;
	CString m_strVideoPath;
	UINT m_nSliderTimer;
	CSliderCtrl m_VideoSlider;
	CStatic m_VideoWindow;

public:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);

public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnBnClickedBtnOpen();
	afx_msg void OnClose();
	afx_msg void OnBnClickedBtnRun();
	afx_msg void OnBnClickedBtnPause();
	afx_msg void OnBnClickedBtnStop();
	afx_msg void OnBnClickedBtnCapture();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnBnClickedBtnCamara();
};
